package com.fowo.api.sys.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fowo.api.sys.entity.SysUserPost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysUserPostMapper extends BaseMapper<SysUserPost> {
    List<Long> selectPostIdsByUserId(@Param("userId") Long userId);

    void deleteByUserId(@Param("userId") Long userId);

    Integer countUserByPostId(@Param("postId") Long postId);
}
